import baseRequest from './request'



export function PageQuery({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/PageList',
        method: 'POST',
        needLogin: true,
        data,
        hasLoading
    })
}

export function Detail({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/Detail',
        method: 'GET',
        needLogin: true,
        data,
        hasLoading
    })
}

export function Cancel({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/Cancel',
        method: 'GET',
        needLogin: true,
        data,
        hasLoading
    })
}


export function Scan({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/Scan',
        method: 'GET',
        needLogin: false,
        data,
        hasLoading
    })
}


export function PayInfo({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/PayInfo',
        method: 'GET',
        needLogin: true,
        data,
        hasLoading
    })
}

export function MonthCardCharge({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/MonthCardCharge',
        method: 'POST',
        needLogin: true,
        data,
        hasLoading
    })
}

export function TempChargePay({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/TempChargePay',
        method: 'POST',
        needLogin: true,
        data,
        hasLoading
    })
}

export function BalanceCharge({ data = {}, hasLoading = true } = {}) {
    return baseRequest({
        url: '/Charge/BalanceCharge',
        method: 'POST',
        needLogin: true,
        data,
        hasLoading
    })
}
